
import VueRouter from "vue-router"
import Vue from "vue"

Vue.use(VueRouter)

const home = () => import("../views/home/home.vue")
const category = () => import("../views/category/category.vue")
const cart = () => import("../views/cart/cart.vue")
const profile = () => import("../views/profile/profile.vue")

const routes=[
	{
		path:"",
		redirect:"/home"
	},
	{
		path:"/home",
		component:home
	},
	{
		path:"/category",
		component:category
	},
	{
		path:"/cart",
		component:cart
	},
	{
		path:"/profile",
		component:profile
	},
]

const router=new VueRouter({
	routes,
	mode:"history"
})

export default router